<?php

/**
 * Subclass for representing a row from the 'remarks' table.
 *
 * 
 *
 * @package lib.model
 */ 
class Remarks extends BaseRemarks
{

    public static function getRemarksNumber($objType, $objId)
    {
        $c = new Criteria();
		$c->add(RemarksPeer::OBJ_TYPE, $objType);
		$c->add(RemarksPeer::OBJ_ID, $objId);
		$comments = RemarksPeer::doSelect($c);
		if( !$comments ) 
		{
		    $number = 0;
		} else
		{
			$number = count($comments);
		}
		return $number;
    }

}
